import com.dinmax.flash.gsa.sgs.*
import com.dinmax.flash.gsa.sgs.game.*
import com.dinmax.flash.gsa.sgs.state.*
import com.dinmax.flash.gsa.exception.*
import com.dinmax.flash.gsa.exception.machine.*


class Disabled extends State {
	
	public function isDisabled():Boolean {
		return true;
	}
	
	public function init(exception:GSAException):Boolean {
		/*
		//Apago todo el sgs y muestro el cartel de deshabilitado.
		if(exception instanceof MachineDuplicateException){
			SGS.getActive().getBridge().SGS_2_SWF_disableMachine("maquina duplicada");
		} else if(exception instanceof MachineNotExistsException){
			SGS.getActive().getBridge().SGS_2_SWF_disableMachine("maquina no existe");
		} else if(exception instanceof MachineHourOutException){
			SGS.getActive().getBridge().SGS_2_SWF_disableMachine("maquina fuera de hora");
		}
		*/
		return true;
	}
	
	
}